<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
	MasterPageFile="~/App_ThemeMasters/NoStyle/OneColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Ajax.NitobiBasePage" EnableEventValidation="false" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="ScsAspNet" Namespace="Syrinx.Gui.AspNet.Ajax" TagPrefix="saj" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<script runat="server">
	public string TitleFormat = "$glgo.title$ - Discussion Forums";
</script>

<asp:Content ID="c0" runat="server" ContentPlaceHolderID="mainContent">
<swf:BizProc runat="server" ID="forums" FactoryName="Forums">
	<State pid='LinC0_' includeSelf="false" startDepth="1" endDepth="2"
	 EditModeSessionKey="ForumEdit" includeCounts="true" entireTree="true" listDetailLevel="basicDetails" />
</swf:BizProc>

<span class="button1"><saj:ActionButton runat="server" ID="_pst" Actions="forums.AddBizObj" Text="Post Reply" /></span>
<span class="button6"><saj:ActionButton runat="server" ID="_pst2" Actions="forums.UpdateBizObj" Text="Submit Changes" /></span>
<span class="button1"><saj:ActionButton runat="server" ID="_pst3" Actions="forums.CancelEdits" Text="Cancel" /></span>
<span class="button5"><saj:ActionButton runat="server" ID="_pst4" Actions="forums.DeleteBizObj" Text="Delete" ClientClick="if(!confirm('Are you sure you want to delete?'))return false;"/></span>
<span class="button1"><saj:ActionButton runat="server" ID="_pst5" Actions="forums.SetArticlePicture" Text="Set Image" ToolTip="Set primary media for this article" 
	PopupPage="../popups/SetArticleImagePopup.aspx" PopupHeight="535px" PopupWidth="800px" PopupTitle="Select a primary image for this article." /></span>

<art:ArticleTranslationDisplay runat="server" ID="f2"
	ParentBizProcIds="forums" 
	TranslationTemplate="Articles.Gui.AspNet.ArticleTranslationRWDisplay"
	ReadOnlyTemplate=""
	EditableTemplate="Forums.Gui.AspNet.ForumGroupRWDisplay-Style1" >
	<macros imageRes="Thumbnail" />
</art:ArticleTranslationDisplay>


<div style="width:99%">
<saj:ComplexBizObjListDisplay ID="f1" runat="server" ParentBizProcIds="forums"
	EditableTemplate="Forums.Gui.AspNet.ForumGroupListDisplay-Style1"
	ReadOnlyTemplate="Forums.Gui.AspNet.ForumGroupROListDisplay-Style1">
	<macros imageRes="SmallThumbnail" LayersClass="ForumGrpBkg"
	grpNavLink="javascript:if(document.getElementById('ctl00_mainContent_f2_baseTitle') != null)$_bizProcId$BizProc.triggerEvent('$_controlId$','bizObjSelected','$id$');"
	navLink="javascript:if(document.getElementById('ctl00_mainContent_f2_baseTitle') == null)window.location.href='$CmpSetting(sitePath)$/std/Forum.aspx?forumpid=$uniqueId$&amp;troot=Forums';else $_bizProcId$BizProc.triggerEvent('$_controlId$','bizObjSelected','$id$');"
	readOnlyForumNavLink="$CmpSetting(sitePath)$/std/Forum.aspx?forumpid=$uniqueId$&amp;troot=Forums" />
</saj:ComplexBizObjListDisplay>		
</div>
</asp:Content>

